/*
 *  Render.h
 *  3D Engine GLUT
 *
 *  Created by Alex Nesta on 2/26/10.
 *  Copyright 2010 Holy Cross High School. All rights reserved.
 *
 */

void render(void)
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);	
	
	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
	LoadImages();

	glDisable(GL_COLOR_MATERIAL);
	glEnable(GL_TEXTURE_2D);
	
	GenImg(BackGround, 0, 1200);
	GenImg(CampaignSel, 0, 1200);
	GenImg(OptionsSel, 0, 1000);
	GenImg(CreditsSel, 0, 800);
	GenImg(ExitSel, 0, 600);
	glDisable(GL_TEXTURE_2D);
	
	


	//LoadText();
	
    glutSwapBuffers();
}